<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path;
    %>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>图片分享后台</title>
    <!-- 基本配置文件会先放在前面 -->
    <link rel="stylesheet" type="text/css" href="../resources/package/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="../resources/package/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../resources/manager/css/base.css">
    <link rel="stylesheet" type="text/css" href="../resources/manager/css/form.css">
    <link rel="stylesheet" type="text/css" href="../resources/manager/css/nav.css">
    <script type="text/javascript" src="../resources/package/jquery/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="../resources/package/layer/layer.js"></script>
    <script>
        $(function () {
            var count = 0;
            $(".myshow").click(function () {
                console.log("1");
                count = (count+1)%2;
                if(count==1){
                    $(".user-nav").css("display","block")
                }else{
                    $(".user-nav").css("display","none")
                }
            });
        });
    </script>
</head>
<body>
<div class="header-wrapper">
    <div class="header">
        <div class="nav-left">
            <i class="glyphicon glyphicon-align-justify"></i>
        </div>
        <div class="nav-middle">
            <div class="logoInfo">
                <a class="logo">图片分享后台</a>
            </div>
        </div>
        <div class="nav-right">
            <!--fontawesome字体图标-->
            <a class="myshow"><i class="glyphicon glyphicon-user"></i></a>
        </div>
        <!--<a>账户</a>-->
        <div class="user-nav" >
            <div class="triangle"></div>
            <div class="triangle-shadow"></div>
            <div class="user-nav-wrapper" style="background-color: #010001;">
                <div class="user-info">
                    <div class="user-img">
                        <i class="glyphicon glyphicon-user" style="color: white"></i>
                    </div>
                    <div class="" style="color: #ffffff">${currentAdmin.account}</div>
                </div>
                <div class="user-item">
                    <a class="" style="color: #ffffff">个人资料</a>
                </div>
                <div class="user-item">
                    <a  href="<%=basePath%>/user/updatepassword?isAdmin=true" style="color: #ffffff">修改密码</a>
                </div>
                <div class="user-item">
                    <a href="<%=basePath%>/admin/addAdmin" style="color: #ffffff">添加管理员</a>
                </div>
                <div class="user-item">
                    <a  href="<%=basePath%>/admin/logout" style="color: #ffffff">退出</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="content-wrapper">
    <div class="left-model">
        <div class="left-model-header">
            <a class="model-title-left">图片分享</a>
            <a class="model-title-right"><i class="fa fa-angle-right"></i></a>
        </div>
        <div class="left-model-middle">
            <a class="left-model-item">
                <i class="icon glyphicon glyphicon-home"></i>
                <span class="content" href="<%=basePath%>/admin/adminIndex">首页</span>
            </a>
            <a class="left-model-item">
                <i class="icon glyphicon glyphicon-star"></i>
                <span class="content">收藏集</span>
            </a>
            <a class="left-model-item">
                <i class="icon glyphicon glyphicon-sort"></i>
                <span class="content">分类</span>
            </a>
            <a class="left-model-item">
                <i class="icon glyphicon glyphicon-stats"></i>
                <span class="content">排行</span>
            </a>
            <a class="left-model-split"></a>
            <a class="left-model-item">
                <i class="icon glyphicon glyphicon-certificate"></i>
                <span class="content">设置</span>
            </a>
            <a class="left-model-item">
                <i class="icon glyphicon glyphicon-question-sign"></i>
                <span class="content">帮助</span>
            </a>
        </div>
        <div class="left-model-bottom">
            <div class="info">图片分享程序</div>
            <div class="info"><a>隐私政策 </a><a> 服务条款</a></div>
            <div class="info"><a>©2017 易拓工作室</a></div>
        </div>
    </div>
    <div class="left">
        <ul class="left-header">
            <li class="left-item">
                <a class="content left-item-height" href="<%=basePath%>/admin/adminIndex"> <i class="icon glyphicon glyphicon-home"></i>首页</a>
            </li>
            <li class="left-item">
                <a class="content left-item-height"> <i class="icon glyphicon glyphicon-user"></i>用户管理<i class="icon-right glyphicon glyphicon-chevron-down"></i></a>
                <ul class="twoRank">
                    <li>
                        <a class="left-item-height twoRank-a" href="<%=basePath%>/admin/manageUser?pn=1">
                            <i class="icon glyphicon glyphicon-chevron-right" ></i>
                            用户操作
                        </a>
                    </li>
                    <li class="twoRank-li">
                        <a class="left-item-height twoRank-a" href="<%=basePath%>/admin/addAdmin">
                            <i class="icon glyphicon glyphicon-chevron-right"></i>
                            添加管理员
                        </a>
                    </li>
                </ul>
            </li>
            <li class="left-item">
                <a class="content left-item-height"> <i class="icon glyphicon glyphicon-bold"></i>关键字管理<i class="icon-right glyphicon glyphicon-chevron-down"></i></a>
                <ul class="twoRank">
                    <li>
                        <a class="left-item-height twoRank-a" href="<%=basePath%>/admin/keyword?pn=1">
                            <i class="icon glyphicon glyphicon-chevron-right"></i>
                            关键字操作
                        </a>
                    </li>
                </ul>
            </li>
            <li class="left-item">
                <a class="content left-item-height"> <i class="icon glyphicon glyphicon-share-alt"></i>举报审核<i class="icon-right glyphicon glyphicon-chevron-down"></i></a>
                <ul class="twoRank">
                    <li>
                        <a class="left-item-height twoRank-a" href="<%=basePath%>/admin/examineList?pn=1&select=0">
                            <i class="icon glyphicon glyphicon-chevron-right"></i>
                            审核列表
                        </a>
                    </li>
                    <li class="twoRank-li">
                        <a class="left-item-height twoRank-a" href="<%=basePath%>/admin/examineList?pn=1&select=-1">
                            <i class="icon glyphicon glyphicon-chevron-right"></i>
                            待审核列表
                        </a>
                    </li>
                    <li class="twoRank-li">
                        <a class="left-item-height twoRank-a" href="<%=basePath%>/admin/examineList?pn=1&select=1">
                            <i class="icon glyphicon glyphicon-chevron-right"></i>
                            已审核列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="left-item">
                <a class="content left-item-height"> <i class="icon glyphicon glyphicon-list"></i>系统公告<i class="icon-right glyphicon glyphicon-chevron-down"></i></a>
                <ul class="twoRank">
                    <li>
                        <a class="left-item-height twoRank-a" href="<%=basePath%>/admin/info?pn=1">
                            <i class="icon glyphicon glyphicon-chevron-right"></i>
                            公告管理
                        </a>
                    </li>
                </ul>
            </li>
            <li class="left-item setting">
                <a class="content left-item-height"><i class="icon glyphicon glyphicon-certificate"></i>设置</a>
            </li>
        </ul>
    </div>
    <div class="right">
        <c:if test="${not empty addAdminMessage}">
            <script>
                $(function () {
                    layer.msg('添加成功', {
                        time: 2000
                    });
                });
            </script>
        </c:if>
        <div class="right-inner">
            <div class=col-md-12" id="middle-right-content">
                <div class="middle-right-header">
                    <a href="<%=basePath%>/admin/adminIndex"><span>首页  / </span></a>
                </div>
                <div class="search form-group">
                    <span class="deleteMoreUser">批量删除<i class="glyphicon glyphicon-minus"></i></span><span class="addUser">添加成员<i class="glyphicon glyphicon-plus"></i></span>
                    <input class="form-control" placeholder="请输入搜索内容"><i class="glyphicon glyphicon-search" title="搜索"></i>
                </div>
                <table class="table table-striped table-bordered table-hover">
                    <tbody class="tbody" id="Tbody">
                    <tr>
                        <th>编号</th>
                        <th>关键字</th>
                        <th>类型</th>
                        <th>时间</th>
                        <th>操作</th>
                    </tr>
                    <tr>
                        <th>Munoz</th>
                        <th>1881018980</th>
                        <th>441890201823021321</th>
                        <th>广州天河</th>
                        <th>2017-08-02,10:30</th>
                    </tr>
                    <tr>
                        <th>Munoz</th>
                        <th>1881018980</th>
                        <th>441890201823021321</th>
                        <th>广州天河</th>
                        <th>2017-08-02,10:30</th>
                    </tr>
                    </tbody>
                </table>
                <div class="bottom">
                    <div class="page">
                        <ul>
                            <li class='pageNum first-li'><a>1</a></li>
                            <li class='pageNum'><a>2</a></li>
                            <li class='pageNum last-li'><a>3</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="../resources/manager/js/app/base.js"></script>
<script src="../resources/manager/js/app/tool.js"></script>
<script src="../resources/manager/js/app/fade.js"></script>
<script src="../resources/manager/js/app/shareFunction.js"></script>
</html>